package kaufman.id.projects;

public class Cube extends PhysicalObjects {
	private int length;
	private int cubicVolume;
	private String name;
	
	public Cube(){
		
	}
	public Cube (int length){
		this.length=length;
	}
	public Cube(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public int computeVolume() {

		cubicVolume = (int) Math.pow(length, 3);
		setVolume(cubicVolume);

		return cubicVolume;

	}
}